package com.mz.ozy.adapter;

import android.widget.ImageView;

import androidx.annotation.Nullable;

import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.mz.ozy.R;
import com.mz.ozy.bean.FirmOrderBean;

import java.util.List;

/**
 * Created by Administrator on 2018/11/20.
 */

public class ShoppingCartOrderAdapter extends BaseQuickAdapter<FirmOrderBean.ProductMapBean, BaseViewHolder> {

    public ShoppingCartOrderAdapter(@Nullable List<FirmOrderBean.ProductMapBean> data) {
        super(R.layout.view_item_shopping_cart_order, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, FirmOrderBean.ProductMapBean item) {
        ImageView ivIcon = helper.getView(R.id.iv_icon);
        Glide.with(mContext).load(item.getImg_zt()).into(ivIcon);
    }
}
